Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the delayed sequencer missing messages in tests #2651

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

PlasmaPower
Copy link
Collaborator

Previously, the delayed sequencer might check block X before the inbox reader has read delayed messages from block X, and therefore the delayed sequencer wouldn't see any new delayed messages. Then, it'd wait for block X+1 before checking for new delayed messages again. However, in test cases, there might not be blocks produced regularly and therefore there might not be a block X+1 at all because the test is stuck waiting on the delayed message to be sequenced. Therefore, this PR regularly rechecks the delayed messages to see if it missed anything, which is very cheap because all it needs to do is compare the database's delayed message count to the database's delayed messages sequenced count.

@cla-bot cla-bot bot added the s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA. label Sep 9, 2024
@CLAassistant
Copy link

CLAassistant commented Nov 26, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@joshuacolvin0 joshuacolvin0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@tsahee tsahee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tsahee tsahee enabled auto-merge December 17, 2024 00:29
@tsahee tsahee merged commit 36ac667 into master Dec 17, 2024
16 checks passed
@tsahee tsahee deleted the delayed-seq-missing-messages branch December 17, 2024 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design-approved s Automatically added by the CLA bot if the creator of a PR is registered as having signed the CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants